<{include file="Public/top.html" }>
	</head>
	<body>



		<div id="warpper">
            <div class="content">
                <div class="location">物品交换</div>
                <{include file="./nav.html" }>
                <div class="filedSet" style="padding-bottom: 0;">
                    <div class="search">
                        <form action="" id="searchForm" method="get" class="ui-form reportForm">
                            <input name="m" type="hidden" value="<{$module}>">
                            <input name="c" type="hidden" value="<{$controller}>">
                            <input name="a" type="hidden" value="<{$action}>">

                            <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                            <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">
                            <input name="ofield" id="ofield" type="hidden" value="<{$ofield}>">
                            <input name="otype"  id="otype"  type="hidden" value="<{$otype}>">
                            <div class="ui-form-item inline-block">
                                <label class="ui-label">用户昵称</label>
                                <input name="nickname" type="text" value="<{$nickname}>" class="ui-text bg-text keyword" />
                            </div>
                            <div class="ui-form-item inline-block">
                                <label class="ui-label">请求时间</label>
                                <input name="beginTime" value="<{$beginTime}>" type="text" id="beginTime" class="ui-text"/>
                            </div>
                            <div class="ui-form-item inline-block">
                                <label class="ui-label">-&nbsp;</label>
                                <input name="endTime" value="<{$endTime}>" type="text" id="endTime" class="ui-text"/>
                            </div>
                            <div class="ui-form-item inline-block">
                                <label class="ui-label">交换状态</label>
                                <select name="recordStatus" class="ui-select" style="width: 100px;">
                                    <{html_options options=$recordStatus selected=$audit}>
                                </select>
                            </div>

                            <div class="ui-form-item inline-block">
                                <button type="button" class="ui-button" onclick="query();">搜索</button>
                            </div>

                        </form>
                    </div>
                </div> 
                             
                
                <!--表格内容-->
                <div class="mainGrid">
                    <table class="ui-table ui-body">
                        <thead>
                        <tr>
                            <th class="pct9">请求时间</th>
                            <th class="pct9">响应时间</th>

                            <th class="pct12">申请人</th>
                            <th class="pct9">描述及意向</th>
                            <th class="pct15">被申请人</th>
                            <th class="pct10">描述及意向</th>
                            <th class="pct5">评论数量</th>
                            <th class="pct9">状态</th>
                        </tr>
                        </thead>
                        <tbody id="listHTML">
                            <{include file="./trade_list.html" }>
                        </tbody>
                    </table>
                </div>
                <div class="pagination" id="pagerHTML">
                    <!--描述：分页-->
                    <{include file="Public/page_ajax.html" }>
                </div>
            </div>
		</div>
        <{include file="Public/foot_ajax.html" }>


        <script>

            datePickter('beginTime','endTime',1);
            $(document).ready(
                    $('.title').on('mouseover',function (e) {
                        if(e.target.tagName!='TD'){
                            return;
                        }
                        layer.closeAll();
                        var url=$(e.target).attr('data');
                        var title = e.target.innerText;
                        layer.tips("<h1 style='color: #000000;text-overflow:ellipsis;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;min-height: 25px;'>"+title+'</h1><img src="'+url+'" style="width:280px;height:140px;">', e.target,
                                {
                                    tips:[4,'#ffffff'],
                                    area: ['300px', '180px'],
                                    skin:'BoxShadow'
                                });
                    })
            );
        </script>

	</body>
</html>

